package com.zhubayi.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author zhubayi
 */
@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT",fallback =PaymentHystrixFallBackService.class )
public interface PaymentHystrixService {
    @GetMapping("payment/hystrix/ok/{id}")
     String ok(@PathVariable("id")Integer id);
    @GetMapping("payment/hystrix/timeout/{id}")
     String timeout(@PathVariable("id")Integer id);
}
